package cn.weiron.fun.sample.service;


import cn.weiron.fun.infrastructure.dto.PageResult;
import cn.weiron.fun.sample.dto.*;
import cn.weiron.fun.sample.entity.SamplePoint;
import cn.weiron.fun.sample.result.SamplePointResult;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;

/**
 * (SamplePoint)表服务接口
 *
 * @author makejava
 * @since 2022-07-16 10:36:15
 */
public interface SamplePointService extends IService<SamplePoint> {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SamplePointResult queryById(Integer id);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    /**
     * 查询采样点位信息
     * @param item
     * @return
     */
    SamplePoint queryByUniqueId(String item);

    /**
     * 生成二维码
     * @param id
     * @return
     */
    void qrCode(HttpServletResponse response,Integer id);



    /**
     * 批量生成二維碼
     * @param response
     */
    void batchGeneration(HttpServletResponse response);

}
